package com.cimstech.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "value")
public class Value {

    private String key;

    private String q;

    private String t;

    private String v;

    public Value() {
    }

    public Value(String _key, String _q, String _t, String _v) {
        this.key = _key;
        this.q = _q;
        this.t = _t;
        this.v = _v;
    }

    @XmlElement(name = "key")
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @XmlElement(name = "q")
    public String getQ() {
        return q;
    }

    public void setQ(String q) {
        this.q = q;
    }

    @XmlElement(name = "t")
    public String getT() {
        return t;
    }

    public void setT(String t) {
        this.t = t;
    }

    @XmlElement(name = "v")
    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{\"key\":\"").append(key).append("\",\"q\":\"").append(q).append("\",\"t\":\"").append(t).append("\",\"v\":\"").append(v).append("\"").append("}");
        return sb.toString();
    }
}
